﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SelfMonitor
{
    public partial class FWelcome : Form
    {
        public FWelcome()
        {
            InitializeComponent();
        }

        private void FWelcome_Load(object sender, EventArgs e)
        {
            textBox1.Text = "D:\\工程\\CSharp";
            button2.Enabled = false;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FMain fm = new FMain(textBox1.Text);
            this.Hide();
            fm.Show();
            //this.Close();
                   
        }

        private void button2_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog fbd = new FolderBrowserDialog();
            if (fbd.ShowDialog() == DialogResult.OK)
            {
                textBox1.Text = fbd.SelectedPath;
                fbd.Dispose();
            }
        }
    }
}
